package entities;

import java.util.Comparator;

//for comparing 2 products based on the aggregatedValue1
public class ProductComparator implements Comparator<Product> 
{
	public int compare(Product p1, Product p2)
	{
		if(p1.getAggregatedValue1() <= p2.getAggregatedValue1())
			return -1;
		else
			return 1;
	}

}
